import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: 'LOGO',
    align: "center",
    dataIndex: 'logo',
    customRender: render.renderImage,
  },
  {
    title: '营业执照',
    align: "center",
    dataIndex: 'businessLicense',
    customRender: render.renderImage,
  },
  {
    title: '服务商名称',
    align: "center",
    dataIndex: 'serviceProviderName'
  },
  {
    title: '服务商类别',
    align: "center",
    dataIndex: 'serviceProviderCategory_dictText'
  },
  {
    title: '服务商类型',
    align: "center",
    dataIndex: 'serviceProviderType_dictText'
  },
  {
    title: ' 统一社会信用代码',
    align: "center",
    dataIndex: 'businessLicenseNumber'
  },
  {
    title: '归属区域',
    align: "center",
    dataIndex: 'region',
  },
  {
    title: '负责人',
    align: "center",
    dataIndex: 'personInCharge_dictText'
  },
  {
    title: '手机号',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '固话号码',
    align: "center",
    dataIndex: 'fixedLinePhoneNumber'
  },
  {
    title: '邮箱',
    align: "center",
    dataIndex: 'email'
  },
  {
    title: '法人代表',
    align: "center",
    dataIndex: 'legalRepresentative'
  },
  {
    title: '法人身份证正面',
    align: "center",
    dataIndex: 'frontSideOfIdcard',
    customRender: render.renderImage,
  },
  {
    title: '法人身份证反面',
    align: "center",
    dataIndex: 'idcardBack',
    customRender: render.renderImage,
  },
  {
    title: '结算方式',
    align: "center",
    dataIndex: 'paymentMethod_dictText'
  },
  {
    title: ' 结算周期',
    align: "center",
    dataIndex: 'billingCycle_dictText'
  },
  {
    title: '开户行',
    align: "center",
    dataIndex: 'bankOfDeposit'
  },
  {
    title: ' 银行卡号',
    align: "center",
    dataIndex: 'bankCardNumber'
  },
];

// 高级查询数据
export const superQuerySchema = {
  logo: {title: 'LOGO',order: 0,view: 'image', type: 'string',},
  businessLicense: {title: '营业执照',order: 1,view: 'image', type: 'string',},
  serviceProviderName: {title: '服务商名称',order: 2,view: 'text', type: 'string',},
  serviceProviderCategory: {title: '服务商类别',order: 3,view: 'list', type: 'string',dictCode: 'service_provider_category',},
  serviceProviderType: {title: '服务商类型',order: 4,view: 'list', type: 'string',dictCode: 'service_provider_type',},
  businessLicenseNumber: {title: ' 统一社会信用代码',order: 5,view: 'text', type: 'string',},
  region: {title: '归属区域',order: 6,view: 'pca', type: 'string',},
  personInCharge: {title: '负责人',order: 7,view: 'sel_user', type: 'string',},
  phone: {title: '手机号',order: 8,view: 'text', type: 'string',},
  fixedLinePhoneNumber: {title: '固话号码',order: 9,view: 'text', type: 'string',},
  email: {title: '邮箱',order: 10,view: 'text', type: 'string',},
  legalRepresentative: {title: '法人代表',order: 11,view: 'text', type: 'string',},
  frontSideOfIdcard: {title: '法人身份证正面',order: 12,view: 'image', type: 'string',},
  idcardBack: {title: '法人身份证反面',order: 13,view: 'image', type: 'string',},
  paymentMethod: {title: '结算方式',order: 14,view: 'list', type: 'string',dictCode: 'payment_method',},
  billingCycle: {title: ' 结算周期',order: 15,view: 'list', type: 'string',dictCode: 'billing_cycle',},
  bankOfDeposit: {title: '开户行',order: 16,view: 'text', type: 'string',},
  bankCardNumber: {title: ' 银行卡号',order: 17,view: 'text', type: 'string',},
};
